package com.nuance.assignment.fileInfo.shared;

import java.io.Serializable;
import java.util.List;

/**
 * Data Transfer Object for Page. This is the class that will be used to convert
 * page information into Json format. Thus any Json marshaling related
 * annotations, if required, should be put on this class.
 * 
 * @author parag
 *
 */
public class PageDTO<T> implements Serializable {
	private static final long serialVersionUID = 1L;

	private String sort = Constants.NAME;
	private boolean ascending = true;
	private int start = 0;
	private int size = 10;

	private int total;
	private List<T> content;

	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}

	public int getStart() {
		return start;
	}

	public void setStart(int start) {
		this.start = start;
	}

	public int getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public List<T> getContent() {
		return content;
	}

	public void setContent(List<T> content) {
		this.content = content;
	}

	public boolean isAscending() {
		return ascending;
	}

	public void setAscending(boolean ascending) {
		this.ascending = ascending;
	}

}
